﻿<!DOCTYPE html>
<html lang="en">
<#include "../common/common-head.html"/>
<body class="gray-bg top-navigation">
<div id="wrapper">
    <div id="page-wrapper" class="gray-bg">
    <#include "../common/common-menu.html">
        <div class="wrapper wrapper-content">
            <div class="row white-bg" style="padding: 18px 0">

                <div>

                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab"
                                                                  data-toggle="tab">电饭煲</a></li>
                        <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">空调</a>
                        </li>
                    </ul>

                    <!-- Tab panes -->
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane active" id="home">
                            <div class="col-xs-12">
                                <div class="form-search ">
                                    <div class="form-tool btn-group" style="margin-bottom: 15px">
                                        <form action="/direct/add/${productid!}" method="post">
                                <@formAddNum label="预约时间" name="ordertime"></@formAddNum><br/>
                                <@formAddSel label="功能" name="opt" valueMap={"无":"无","柴火饭":"柴火饭","稀饭":"稀饭","粥":"粥","煲仔饭":"煲仔饭","杂粮饭":"杂粮饭","蛋糕":"蛋糕"}></@formAddSel>
                                <@formAddSel label="功能" name="opt2" valueMap={"无":"无","开始":"开始","超快煮":"超快煮","保温":"保温"}></@formAddSel>
                                            <button type="submit" class="btn btn-primary">开始</button>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div role="tabpanel" class="tab-pane" id="profile">
                            <div class="col-xs-12">
                                <div class="form-search ">
                                    <div class="form-tool btn-group" style="margin-bottom: 15px">
                                        <form action="/direct/add/${productid!}" method="post">
                            <@formAddNum label="开始时间" name="ordertime"></@formAddNum>
                            <@formAddNum label="工作时间" name="wordtime"></@formAddNum>
                                <@formAddSel label="功能模式" name="opt" valueMap={"不操作":"不操作","制冷":"制冷","制热":"制热","换气":"换气","制冷":"制冷","自动":"自动"}></@formAddSel>
                                <@formAddNum label="温度" name="opt2" ></@formAddNum>
                                            <button type="submit" class="btn btn-primary">开始</button>
                                        </form>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>


                <div class="col-xs-12">

                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <@tableHead names=["操作","指令","操作时间"]></@tableHead>
                            </tr>
                            </thead>
                            <tbody>
                            <#list pageInfo.list as item>
                            <tr>
                                <@tableBody model=item propMap={"operation":"","data":"","addtime":"yyyy-MM-dd HH:mm:ss"}></@tableBody>
                            </tr>
                            </#list>
                            </tbody>
                        </table>
                    <#include "../common/table-page.html"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

